home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000321_fdc@columbia.edu_Mon Feb 17 19:39:46 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  65 lines

  1. Article: 14117 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Running multiple kermit scripts on one connection
  6. Date: 17 Feb 2003 19:39:13 -0500
  7. Organization: Columbia University
  8. Lines: 48
  9. Message-ID: <b2rvbh$nnc$1@watsol.cc.columbia.edu>
  10. References: <775a2ab0.0302171458.f8f21f9@posting.google.com> <b2rrbl$ks3$1@watsol.cc.columbia.edu> <3E517E98.D89D779C@bom.gov.au>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1045528754 20253 128.59.39.139 (18 Feb 2003 00:39:14 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 18 Feb 2003 00:39:14 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14117
  16.  
  17. In article <3E517E98.D89D779C@bom.gov.au>,
  18. Bruce Stewart  <b.stewart@bom.gov.au> wrote:
  19. : --------------0E4B00F8CCF00119C91BFB8D
  20. : Content-Type: text/plain; charset=us-ascii
  21. : Content-Transfer-Encoding: 7bit
  22. : OK, that second method sounds like it would do the job. I will give it a try
  23. : but first I want to ask you another question.
  24. : I have been looking at the documentation and found the following under
  25. : Command-line options:
  26. :  -l _number
  27. : where number refers to the Windows device handle for a communication
  28. : connection that has already been opened by another process.
  29. I thought of suggesting that but to be frank :-) I don't know if Windows
  30. device handles are valid only within a process tree, or system-wide.
  31. I suppose it's worth a shot.
  32.  
  33. : I tried the following to test it:
  34. : 1-I opened a kermit instance, and opened a connection to com port
  35. :    2, which is where the modem is connected.
  36. : 2-I then tried to open another instance of kermit using the follwoing
  37. :    line:
  38. :       run k95 -l _\v(ttyfd),
  39. :       but got the following respose when the other kermit instance opened:
  40. :       "can't open device",
  41. : Now, I don't know whether the file descriptor is the same as the
  42. : windows device handle. Maybe they are totally different. I will try doing
  43. : it from the program, opening a device handle and passing that into each
  44. : kermit instance. Hopefully that will work.
  45. Either the process handle is not valid or else you can't have the same
  46. device opened for read/write access by two different processes.
  47. Somebody else might answer later with better information.
  48.  
  49. Another possibility, of course, is to configure the modem to ignore DTR and
  50. Kermit to ignore CD.  Then you can open and close the port all you like, but
  51. then it's no longer straightforward to catch broken connections, and you
  52. can no longer hang up a connection simply by closing the port.
  53.  
  54. - Frank
  55.